package com.jumper.study.admin.dto.req;

import com.jumper.study.common.dto.PageSearchReq;

//课程搜索
public class LessonSearchReq extends PageSearchReq {
    private Integer categoryId;

    private String title;

    private Boolean recommend;

    private Boolean onself;

    //更新年份
    private Integer year;

    private Integer minPrice;

    private Integer maxPrice;

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Boolean getRecommend() {
        return recommend;
    }

    public void setRecommend(Boolean recommend) {
        this.recommend = recommend;
    }

    public Boolean getOnself() {
        return onself;
    }

    public void setOnself(Boolean onself) {
        this.onself = onself;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMinPrice() {
        if (minPrice != null) {
            return minPrice * 100;
        }
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        if (maxPrice != null) {
            return maxPrice * 100;
        }
        return maxPrice ;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

}
